<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=<<<device-width>>>, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div>
        <h1>标题</h1>
        <p>莫名奇妙</p>
    </div>
    <div>
        密密麻麻
    </div>
    <style>
        /*继承*/
        body{
            color: blue;
        }
        div:first-child{
            color: blueviolet;
        }
    </style>
</body>
</html>